import request from '@/utils/request'

// 查询科类维护列表
export function listGrantfamilies(query) {
  return request({
    url: '/grant/grantfamilies/list',
    method: 'get',
    params: query
  })
}

// 查询科类维护详细
export function getGrantfamilies(id) {
  return request({
    url: '/grant/grantfamilies/' + id,
    method: 'get'
  })
}

// 新增科类维护
export function addGrantfamilies(data) {
  return request({
    url: '/grant/grantfamilies',
    method: 'post',
    data: data
  })
}

// 修改科类维护
export function updateGrantfamilies(data) {
  return request({
    url: '/grant/grantfamilies',
    method: 'put',
    data: data
  })
}

// 删除科类维护
export function delGrantfamilies(id) {
  return request({
    url: '/grant/grantfamilies/' + id,
    method: 'delete'
  })
}

// 导出科类维护
export function exportGrantfamilies(query) {
  return request({
    url: '/grant/grantfamilies/export',
    method: 'get',
    params: query
  })
}
// 科类翻译的列表，全量返回
export function getFamiliesFormatList(query) {
  return request({
    url: '/grant/grantfamilies/getFamiliesFormatList',
    method: 'get',
    params: query
  })
}
